package com.store.orm.mongo.curd;

import org.bson.conversions.Bson;

import java.util.LinkedHashMap;

/**
 * @author 宫静雨
 * @version 1.0
 */
public interface Delete {

    <T> void delete(T t);

    <T> void deleteMany(T ts);

    void delete(Class<?> cls, String json);

    void deleteMany(Class<?> cls, String jsons);

    void delete(Class<?> cls, LinkedHashMap<String, Object> map);

    void deleteMany(Class<?> cls, LinkedHashMap<String, Object> map);

    void delete(Class<?> cls, Bson filter);

    void deleteMany(Class<?> cls, Bson filter);
}